package com.beiding.jsonanalyzer.analyze.query.queryfunc;

import com.beiding.jsonanalyzer.analyze.Undefind;
import com.beiding.jsonanalyzer.analyze.query.Comparator;
import com.beiding.jsonanalyzer.analyze.query.ComparatorResult;

/**
 * @author 丁常磊
 * @date 2022/6/27 10:54
 */

public class D_undefined implements Comparator {
    @Override
    public ComparatorResult compare(Object keyValue, Object valueValue) {
        return keyValue == Undefind.i ? ComparatorResult.TRUE : ComparatorResult.FALSE;
    }

    @Override
    public String toString() {
        return "undefined";
    }

}